home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / Includes / system / events.i < prev    next >
Encoding:
Text File  |  1997-10-28  |  1.2 KB  |  45 lines

  1.     IFND SYSTEM_EVENTS_I
  2. SYSTEM_EVENTS_I  SET  1
  3.  
  4. **
  5. **    $VER: events.i V0.9B
  6. **
  7. **    (C) Copyright 1996-1997 DreamWorld Productions.
  8. **        All Rights Reserved
  9. **
  10.  
  11.     IFND    DPKERNEL_I
  12.     include    'dpkernel/dpkernel.i'
  13.     ENDC
  14.  
  15. ******************************************************************************
  16. * The Event Node.
  17.  
  18.     STRUCTURE    Event,0
  19.     APTR    EV_Next       ;Next event node.
  20.     APTR    EV_Prev       ;Previous event node.
  21.     APTR    EV_Routine    ;Pointer to the routine that executes.
  22.     APTR    EV_Args       ;Event arguments.
  23.     WORD    EV_Priority   ;Sets position in the event chain.
  24.     WORD    EV_Number     ;Event number.
  25.     LONG    EV_Flags
  26.  
  27. EVA_Routine  = (TAPTR|EV_Routine)
  28. EVA_Args     = (TAPTR|EV_Args)
  29. EVA_Priority = (TWORD|EV_Priority)
  30. EVA_Number   = (TWORD|EV_Number)
  31.  
  32. EVF_ON        = $00000001         ;Call routine on event.
  33. EVF_AFTER     = $00000002         ;Call routine after event.
  34. EVF_UNTRACKED = $00000004         ;Do not track the event node.
  35.  
  36. ******************************************************************************
  37. * Available event types.
  38.  
  39. EVT_NewTask = 1      ;A new task is appearing.
  40. EVT_RemTask = 2      ;An existing task is being removed.
  41.  
  42. EVT_END     = 200    ;Maximum amount of events for this version.
  43.  
  44.   ENDC    ;SYSTEM_EVENTS_I
  45.